﻿ 
using System;
using System.ComponentModel;
using System.Reflection;
using Prism.Mvvm;
namespace Wpf.Models
{
    /// <summary>
    /// 过敏史
    /// </summary>
    public class PatAllergyinfo : BindableBase
    {
        private string id;
        public string ID
        {
            get { return id; }
            set
            {
                id = value;
                RaisePropertyChanged("ID");
            }
        }
        private string pvid;
        public string PVID
        {
            get { return pvid; }
            set
            {
                pvid = value;
                RaisePropertyChanged("PVID");
            }
        }
       

        /// <summary>
        ///基本类型名称
        /// </summary>
        public string ALLERGYTYPENAME
        {
            get
            {
               
                return "";

            }
        }

        /// <summary>
        /// 过敏类型
        /// </summary>
        private string allergytypeid;
        public string ALLERGYTYPEID
        {
            get { return allergytypeid; }
            set
            {
                allergytypeid = value;
                RaisePropertyChanged("ALLERGYTYPEID");
            }
        }
        private DateTime recordtime;
        public DateTime RECORDTIME
        {
            get { return recordtime; }
            set
            {
                recordtime = value;
                RaisePropertyChanged("RECORDTIME");
            }
        }
        private string userid;
        public string USERID
        {
            get { return userid; }
            set
            {
                userid = value;
                RaisePropertyChanged("USERID");
            }
        }
        private string username;
        public string USERNAME
        {
            get { return username; }
            set
            {
                username = value;
                RaisePropertyChanged("USERNAME");
            }
        }
        private int state = 1;
        public int STATE
        {
            get { return state; }
            set
            {
                state = value;
                RaisePropertyChanged("STATE");
            }
        }
        private string allergyname;
        public string ALLERGYNAME
        {
            get { return allergyname; }
            set
            {
                allergyname = value;
                RaisePropertyChanged("ALLERGYNAME");
            }
        }
        private string deleter;
        public string DELETER
        {
            get { return deleter; }
            set
            {
                deleter = value;
                RaisePropertyChanged("DELETER");
            }
        }
        private DateTime? deletedate;
        public DateTime? DELETEDATE
        {
            get { return deletedate; }
            set
            {
                deletedate = value;
                RaisePropertyChanged("DELETEDATE");
            }
        }
        private string deletercode;
        public string DELETERCODE
        {
            get { return deletercode; }
            set
            {
                deletercode = value;
                RaisePropertyChanged("DELETERCODE");
            }
        }
        private string updater;
        public string UPDATER
        {
            get { return updater; }
            set
            {
                updater = value;
                RaisePropertyChanged("UPDATER");
            }
        }
        private DateTime updatedate;
        public DateTime UPDATEDATE
        {
            get { return updatedate; }
            set
            {
                updatedate = value;
                RaisePropertyChanged("UPDATEDATE");
            }
        }
        private string updatercode;
        public string UPDATERCODE
        {
            get { return updatercode; }
            set
            {
                updatercode = value;
                RaisePropertyChanged("UPDATERCODE");
            }
        }

       

        private string patientId;
        private string aLERGYFROM;
        private string rELIABILITY;
        private string aLERGYREACTION;

        public string PATIENTID
        {
            get { return patientId; }
            set
            {
                patientId = value;
                RaisePropertyChanged("PATIENTID");
            }
        }
        /// <summary>
        /// 过敏来源（医嘱执行、HIS、输液、自己录入）
        /// </summary>
        public string ALERGYFROM
        {
            get => aLERGYFROM; set
            {
                aLERGYFROM = value;
                RaisePropertyChanged(nameof(ALERGYFROM));
            }
        }
        /// <summary>
        /// 可靠性（确定、可疑）
        /// </summary>
        public string RELIABILITY
        {
            get => rELIABILITY; set
            {
                rELIABILITY = value;
                RaisePropertyChanged(nameof(RELIABILITY));
            }
        }
        /// <summary>
        /// 过敏反应
        /// </summary>
        public string ALERGYREACTION
        {
            get => aLERGYREACTION; set
            {
                aLERGYREACTION = value;
                RaisePropertyChanged(nameof(ALERGYREACTION));
            }
        }

    }
}
